<#assign base=request.contextPath>
<!DOCTYPE html> 
<html>
	<head>
		<title></title>
		<meta charset="utf-8">
		<#include "common/reference.ftl" />
        <#include "common/am.reference.ftl" />
		<script type="text/javascript">
		<!--
		$(function(){
			$('#btnSubmit').click(function(){
				var status = $('select[name="status"]').val();
				var statusText = $('select[name="status"]').find('option[value="'+status+'"]').text();
				bootbox.confirm('确定['+statusText+']操作吗？',function(confirmed){
		    		if(confirmed == true){
		    			$('#form').submit();
		    		}
		    	});
			});
		});
		//-->
		</script>
	</head>
	<body>
		<div class="row">
			<#include "common/breadcrumb.ftl">
			<form id="form" role="form" class="form-horizontal" method="post" action="${base}/${form_action}">
				<div class="col-xs-12">
					<div class="widget-box">
						<div class="widget-body">
							<input type="hidden" name="complaintNo" id="applyId" value="${model.complaintNo}">
                            <div class="form-group">
                                <label class="col-sm-3 control-label no-padding-right">
                                    是否对驾驶员扣分
                                </label>
                                <div class="col-sm-6">
                                    <input class="ace ace-switch ace-switch-7" type="checkbox" name="isDecreaseScore" <#if model == null || model.isDecreaseScore>checked="checked"</#if> <#if viewMode == "view">disabled</#if>>
                                    <span class="lbl"></span>
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-3 control-label no-padding-right">
                                    投诉处理结果
                                </label>
                                <div class="col-sm-6">
                                    <textarea id="handleContent" name="handleContent" class="form-control" rows="5" required <#if viewMode == "view">disabled</#if> >${model.handleContent}</textarea>
                                </div>
                            </div>


							<div class="clearfix form-actions">
								<div class="col-md-offset-3 col-md-9">
									<#if model.status lt 2  >
									<button id="btnSubmit" class="btn btn-info" type="button">
										<i class="fa fa-check bigger-110"></i>
										提 交
									</button>
									<#else>
									<a href="${base}/${back_url}" class="btn btn-info">
										<i class="fa fa-arrow-left bigger-110">返回</i>
									</a>
									</#if>
								</div>
							</div>
						</div>
					</div>
				</div>
			</form>
		</div>
	</body>
</html>